import request from "@/utils/request";

//请求医院详情

export let reqHospitalDetail = (hoscode:string) => request({url: `/hosp/hospital/${hoscode}`, method: 'get'})

// 请求医院科室
export let reqHospitalDepartment = (hoscode:string) => request({url: `/hosp/hospital/department/${hoscode}`, method: 'get'})

// 请求短信验证码
export let reqPhoneCode = (phone:string) => request({url: `/sms/send/${phone}`, method: 'get'})

// 请求用户登录Token

export let reqUserLogin = (loginParam:object) => request.post(`/user/login`,loginParam)

// 获取微信扫码登录的参数
export let reqWechatLoginParam = (wxRedirectUri:string) => request.get(`/user/weixin/getLoginParam?wxRedirectUri=${wxRedirectUri}`)

// 请求可预约医院排班数据
export let reqBookingScheduleRule = ({page,limit,hoscode,depcode}) => request.get(`/hosp/hospital/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`)

//请求排班数据

export let reqFindScheduleList = (hoscode,depcode,workDate) => request.get(`/hosp/hospital/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`)

// 请求用户的就诊人信息
export let reqFindAll = () => request.get(`/user/patient/auth/findAll`)

// 请求排班医生的信息
export let reqDoctorInfo = (docId) => request.get(`/hosp/hospital/getSchedule/${docId}`)






